function collect_same_elements(collection_a, object_b) {
  //在这里写入代码
  let arr=new Array();
  let arr1=new Array();
 arr=object_b.value;
 for(let i of collection_a)
  for(let j of arr){
  if(i==j)
  arr1.push(i);}
  return arr1;
}

module.exports = collect_same_elements;
